/*
* $Id: JournalToolbar.cpp 143 2010-09-09 19:55:18Z volok-aleksej@yandex.ru $
*
* Copyright 2009 by Alexey Volokitin
* All rights reserved
*
*/
#include "Common/include.h"
#include "JournalToolbar.h"
#include "CommandIds.h"

CJournalToolbar::CJournalToolbar()
: CTrueColorToolBar(4){}
CJournalToolbar::~CJournalToolbar(){}

void CJournalToolbar::WindowCreate(CWnd* pParent){
	CreateEx(pParent, TBSTYLE_FLAT, WS_CHILD | WS_VISIBLE | CBRS_TOP | CBRS_BORDER_3D | CBRS_FLYBY | CBRS_TOOLTIPS);
	LoadToolBar(IDB_JNL_TOOLBAR);
	SetButtons();
	SetTrueColorToolBar(TB_SETIMAGELIST, IDB_JNL_TOOLBAR, 32);
	SetTrueColorToolBar(TB_SETDISABLEDIMAGELIST, IDB_JNL_TOOLBAR_DISABLE, 32);
}

void CJournalToolbar::FillIds(UINT *ids, std::map<UINT, std::tstring>& idsString){
	ids[0]= ID_HOUSING;
	ids[1]= ID_GRAF;
	ids[2]= ID_BEEQUEEN;
	ids[3]= ID_SETTINGS;
	idsString.insert(std::make_pair(ids[0], ILanguageManager::GetLanguageManager()->GetString(HOUSE_DIALOG_CAPTION_ID).c_str()));
	idsString.insert(std::make_pair(ids[1], _T("")));
	idsString.insert(std::make_pair(ids[2], ILanguageManager::GetLanguageManager()->GetString(QB_DIALOG_CAPTION_ID).c_str()));
	idsString.insert(std::make_pair(ids[3], ILanguageManager::GetLanguageManager()->GetString(SETTINGS_CAPTION_ID).c_str()));
}